/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package bmacotada.orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Paciente_1Criteria extends AbstractORMCriteria {
	public final IntegerExpression pa_id_paciente;
	public final IntegerExpression rut;
	public final StringExpression nombre;
	public final IntegerExpression edad;
	public final IntegerExpression telefono;
	public final StringExpression direccion;
	
	public Paciente_1Criteria(Criteria criteria) {
		super(criteria);
		pa_id_paciente = new IntegerExpression("pa_id_paciente", this);
		rut = new IntegerExpression("rut", this);
		nombre = new StringExpression("nombre", this);
		edad = new IntegerExpression("edad", this);
		telefono = new IntegerExpression("telefono", this);
		direccion = new StringExpression("direccion", this);
	}
	
	public Paciente_1Criteria(PersistentSession session) {
		this(session.createCriteria(Paciente_1.class));
	}
	
	public Paciente_1Criteria() throws PersistentException {
		this(bmacotada.orm.Taller1BMPersistentManager.instance().getSession());
	}
	
	public bmacotada.orm.Cuestionario_1Criteria createCuestionario_1Criteria() {
		return new bmacotada.orm.Cuestionario_1Criteria(createCriteria("ORM_Cuestionario_1"));
	}
	
	public Paciente_1 uniquePaciente_1() {
		return (Paciente_1) super.uniqueResult();
	}
	
	public Paciente_1[] listPaciente_1() {
		java.util.List list = super.list();
		return (Paciente_1[]) list.toArray(new Paciente_1[list.size()]);
	}
}

